<?php

namespace common\models\clinic;

use Yii;

/**
 * This is the model class for table "by_clinic_treatment_del_history".
 *
 * @property int $id
 * @property string|null $del_treatment_detail_id
 * @property int|null $del_treatment_id 删除的 治疗列表id
 * @property int|null $patient_card_id 诊疗号
 * @property string|null $name 患者姓名
 * @property int|null $project_id 项目id
 * @property int|null $clinic_project_id 治疗项目id
 * @property string|null $json_str 治疗json
 * @property string|null $json_str_detail 治疗详情 json
 * @property int|null $created_at
 * @property int|null $updated_at
 */
class TreatmentDelHistory extends \common\models\BaseModel
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'by_clinic_treatment_del_history';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['del_treatment_id', 'patient_card_id', 'project_id', 'clinic_project_id', 'created_at', 'updated_at'], 'integer'],
            [['json_str', 'json_str_detail'], 'safe'],
            [['del_treatment_detail_id'], 'string', 'max' => 255],
            [['name'], 'string', 'max' => 50],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'del_treatment_detail_id' => 'Del Treatment Detail ID',
            'del_treatment_id' => 'Del Treatment ID',
            'patient_card_id' => 'Patient Card ID',
            'name' => 'Name',
            'project_id' => 'Project ID',
            'clinic_project_id' => 'Clinic Project ID',
            'json_str' => 'Json Str',
            'json_str_detail' => 'Json Str Detail',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }
}
